package com.cakin.javademo;

/**
 * @ClassName: com.cakin.javademo.FreshJuiceTest
 * @Description: 枚举水果测试
 * @Date: 2020/6/11
 * @Author: cakin
 */
class FreshJuice {
    // 枚举：enum 枚举名 {以逗号分隔的枚举}
    enum FreshJuiceSize {SMALL, MEDIUM, LARGE}

    // 实例变量
    FreshJuiceSize size;
}
/**
 * @className: com.cakin.javademo.FreshJuice
 * @description: 水果测试
 * @date: 2020/6/11
 * @author: cakin
 */
public class FreshJuiceTest {
    /**
     *
     * @param args 参数
     */
    public static void main(String[] args) {
        /*
        水果测试
        * */
        FreshJuice freshJuice = new FreshJuice();
        freshJuice.size = FreshJuice.FreshJuiceSize.LARGE;
        System.out.println(freshJuice.size);
    }
}
